<%--
  Created by IntelliJ IDEA.
  User: landeqing
  Date: 2017/12/20
  Time: 17:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page language="java" import="java.sql.*" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<%--%>
<%--String url="jdbc:mysql://localhost:3306/landeqing?useUnicode=true&amp;characterEncoding=UTF-8&amp;zeroDateTimeBehavior=convertToNull";--%>
<%--String userName="root";--%>
<%--String pwd="";--%>
<%--String driver="com.mysql.jdbc.Driver";--%>
<%--Class.forName(driver);--%>
<%--Connection connection=DriverManager.getConnection(url,userName,pwd);--%>
<%--String sql="select count(*) from student";--%>
    <%--PreparedStatement ps=connection.prepareStatement(sql);--%>
  <%--ResultSet  result= ps.executeQuery();--%>
  <%--result.next();--%>
  <%--System.out.println("记过是"+result.getInt(1));--%>

<%--%>--%>
<table border="1" align="center">
    <tr>
        <td>学生idrfdhy:</td>
        <td>学生名字:</td>
        <td>学生班级:</td>
    </tr><br>
    <tr>
<c:forEach items="${banji.students}" var="obj">
    <td>${obj.id}</td>
    <td>${obj.name}</td>
    <td>${banji.className}</td>
</c:forEach><br/>
  </tr>
    <br>
</table>
</body>
</html>
